import java.io.IOException;
import java.sql.SQLException;

public class SGTester1
{

	private String runCode, authorID, examDate;
	private String[] arguments;
	
	public SGTester1()
	{
		runCode = "generate";
		authorID = "2";
		examDate = "06/06/2009";
		arguments = new String[3];
		arguments[0] = runCode;
		arguments[1] = examDate;
		arguments[2] = authorID;
	}

	public static void main(String[] args) throws SQLException, IOException
	{
	
		SGTester1 sgt = new SGTester1();
		sgt.runServlet();
	
	}

	private void runServlet() throws IOException, SQLException
	{
	
		SGServlet sg = new SGServlet();
		int newExam = sg.execute(arguments);
		System.out.println("The id of the new exam is: " + newExam);
	
	}
}
